:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #334155;
    --bg-glass: rgba(30, 41, 59, 0.9);
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-red: #ef4444;
    --accent-purple: #8b5cf6;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border-color: #475569;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --glow-blue: 0 0 20px rgba(59, 130, 246, 0.4);
    --glow-green: 0 0 20px rgba(16, 185, 129, 0.4);
    --glow-red: 0 0 20px rgba(239, 68, 68, 0.4);
    --transition-base: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

body {
    background: linear-gradient(135deg, var(--bg-primary) 0%, #1e293b 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    padding: 15px 0 40px;
}

.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 20px;
    height: calc(100vh - 90px);
}

/* 头部样式 */
header {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--bg-glass);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    margin-bottom: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-blue);
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.status-bar {
    display: flex;
    gap: 15px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    font-size: 14px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    position: relative;
}

.status-dot.active {
    background: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
}

.status-dot.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--accent-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    70% {
        transform: scale(2.5);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 0;
    }
}

/* 左侧区域 */
.left-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

/* 控制面板 */
.control-card {
    background: var(--bg-glass);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    flex: 1;
    /* 占据一半高度 */
    min-height: 0;
    /* 允许收缩 */
    display: flex;
    flex-direction: column;
}
.log-wrapper {
    flex: 1;
    /* 占据另一半高度 */
    min-height: 0;
    /* 允许收缩 */
    position: relative;
}

.log-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-glass);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 20px;
    display: flex;
    flex-direction: column;
    z-index: 10;
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 控制选项卡 */
.control-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 5px;
}

.control-tab {
    flex: 1;
    min-width: 60px;
    padding: 10px 8px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-base);
    border-bottom: 2px solid transparent;
    text-align: center;
    border-radius: 6px 6px 0 0;
}

.control-tab.active {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
}

.control-tab:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(30, 41, 59, 0.6);
}

/* 控制面板选项卡内容 */
.control-tab-content {
    display: none;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.control-tab-content.active {
    display: flex;
    flex-direction: column;
}

/* 数据展示区域选项卡内容 - 保持原名但更具体 */
.right-panel .tab-content {
    display: none;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
}

.right-panel .tab-content.active {
    display: flex;
}

/* 选项卡内容 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 控制按钮区域 */
.control-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 固定3列 */
    gap: 10px;
    margin-bottom: 15px;
    flex: 1;
    /* 占据剩余空间 */
    align-content: start;
    /* 顶部对齐 */
}
.control-btn {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    font-size: 11px;
    min-height: 70px;
    /* 固定高度保持一致性 */
}

.control-btn:hover {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    box-shadow: var(--glow-blue);
    transform: translateY(-2px);
}

.control-btn.emergency-stop {
    background: linear-gradient(135deg, var(--accent-red), #dc2626);
}

.control-btn.emergency-stop:hover {
    box-shadow: var(--glow-red);
}
.control-btn i {
    font-size: 16px;
}

.btn-text {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
}

/* 选项组布局优化 */
.options-group {
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.options-group-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 单选按钮组 */
.radio-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}



.radio-label input[type="radio"] {
    margin: 0;
}

/* 美化单选框 */
.radio-option {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.radio-option input {
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-custom {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    border: 2px solid var(--border-color);
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.radio-custom:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--accent-blue);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: all 0.3s ease;
}

.radio-option input:checked+.radio-custom {
    border-color: var(--accent-blue);
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
}

.radio-option input:checked+.radio-custom:after {
    transform: translate(-50%, -50%) scale(1);
    background: white;
}

.radio-option input:focus+.radio-custom {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* 单选框标签样式 */
.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 8px;
    background: rgba(30, 41, 59, 0.5);
    transition: var(--transition-base);
    flex: 1;
    min-width: 100px;
    justify-content: center;
}

.radio-label:hover {
    background: rgba(59, 130, 246, 0.1);
}

.radio-text {
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 500;
}
/* 复选框组 */
.checkbox-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(30, 41, 59, 0.5);
    transition: var(--transition-base);
    flex: 1;
    min-width: 100px;
    justify-content: center;
}

.checkbox-label:hover {
    background: rgba(59, 130, 246, 0.1);
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
}

.checkbox-text {
    font-size: 12px;
    color: var(--text-primary);
}
/* 简单的抽屉式开关 */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #475569;
    transition: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #6a6bf6;
}

input:checked+.slider:before {
    transform: translateX(26px);
}

/* 开关标签样式 */
.switch-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(30, 41, 59, 0.5);
    transition: var(--transition-base);
}

.switch-label:hover {
    background: rgba(59, 130, 246, 0.1);
}

.switch-text {
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 500;
}


/* 日志区域 */
.log-wrapper {
    position: relative;
    height: 100%;
}

.log-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-glass);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 20px;
    flex-direction: column;
    z-index: 10;
    display: flex;
}

.log-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.log-panel-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-purple);
    display: flex;
    align-items: center;
    gap: 8px;
}

.log-panel-actions {
    display: flex;
    gap: 10px;
}

.log-panel-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 6px;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: 5px;
}

.log-panel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.log-container {
    flex: 1;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 12px;
    padding: 15px;
    overflow-y: auto;
    font-family: 'Fira Code', monospace;
    font-size: 12px;
}

.log-entry {
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(30, 41, 59, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.log-entry.info {
    border-left: 3px solid var(--accent-blue);
}

.log-entry.success {
    border-left: 3px solid var(--accent-green);
}

.log-entry.warning {
    border-left: 3px solid var(--accent-orange);
}

.log-entry.error {
    border-left: 3px solid var(--accent-red);
}

.log-time {
    color: var(--text-muted);
    font-size: 11px;
    min-width: 80px;
}

/* 右侧区域 */
.right-panel {
    background: var(--bg-glass);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: calc(100vh - 160px);
}

/* 一级选项卡 */
.main-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: rgba(30, 41, 59, 0.6);
}

.main-tab {
    padding: 15px 25px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-base);
    border-bottom: 3px solid transparent;
}

.main-tab.active {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
}

.main-tab:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(30, 41, 59, 0.8);
}

/* 二级选项卡 */
.sub-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: rgba(30, 41, 59, 0.4);
    padding-left: 20px;
}

.sub-tab {
    padding: 10px 20px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-base);
}

.sub-tab.active {
    color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.1);
}

.sub-tab:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(30, 41, 59, 0.6);
}

/* 内容区域 */
.content-area {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.tab-content {
    display: none;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
}

.tab-content.active {
    display: flex;
}

/* 数据展示区域 */
.data-display {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.data-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.data-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-blue);
}

.data-actions {
    display: flex;
    gap: 10px;
}

.data-action-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 6px;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: 5px;
}

.data-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.data-content {
    flex: 1;
    overflow-y: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th {
    text-align: left;
    padding: 10px 12px;
    background: rgba(30, 41, 59, 0.5);
    color: var(--accent-blue);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
}

.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover {
    background: rgba(30, 41, 59, 0.3);
}

.status-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.status-success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-green);
}

.status-warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent-orange);
}

.status-error {
    background: rgba(239, 68, 68, 0.2);
    color: var(--accent-red);
}

.status-info {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-blue);
}

/* 模态窗口 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-glass);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-blue);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition-base);
}

.modal-close:hover {
    color: var(--accent-red);
}

.modal-body {
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-base);
}

.modal-btn.primary {
    background: var(--accent-blue);
    color: white;
}

.modal-btn.secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.modal-btn:hover {
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .left-panel {
        height: auto;
    }

    .log-wrapper {
        height: 400px;
    }

    .right-panel {
        height: 800px;
    }
}

@media (max-width: 768px) {
    .control-panel {
        grid-template-columns: 1fr;
    }

    .control-tabs {
        flex-direction: column;
    }

    .radio-group,
    .checkbox-group {
        flex-direction: column;
        align-items: center;
    }

    .status-bar {
        flex-direction: column;
        gap: 10px;
    }

    header {
        flex-direction: column;
        gap: 15px;
    }

    .main-tabs {
        flex-wrap: wrap;
    }

    .main-tab {
        padding: 10px 15px;
        font-size: 13px;
    }

    .sub-tab {
        padding: 8px 12px;
        font-size: 12px;
    }
}


/* 相机参数 */
.param-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}
.param-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.param-group {
    display: flex;
    flex-direction: column;
}

.param-group label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #B1B5B9;
}

.param-group input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.param-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}



.image-comparison-container {
    width: 100%;
    margin: 0 auto;
}

.comparison-inner {
    display: flex;
    gap: 24px;
    align-items: stretch;
    min-height: 400px;
}

.comparison-image {
    flex: 1;
    min-width: 0;
    border-radius: 12px;
    padding: 0;
    background: transparent;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.comparison-image:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.comparison-image .image-title {
    font-weight: 600;
    margin-bottom: 0;
    text-align: center;
    color: #2c3e50;
    font-size: 16px;
    padding: 16px 20px;
    color: white;
    margin: 0;
}

.comparison-image .image-placeholder {
    text-align: center;
    padding: 80px 20px;
    color: #95a5a6;
    background: rgba(245, 245, 245, 0.8);
    border-radius: 0 0 12px 12px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.comparison-image .image-placeholder i {
    font-size: 56px;
    margin-bottom: 16px;
    color: #bdc3c7;
    opacity: 0.7;
}

.comparison-image .image-placeholder p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.comparison-image .ros-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
    border-radius: 0 0 12px 12px;
}

.detection-overlay {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}


/* 加载动画 */
.comparison-image.loading .image-placeholder i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 响应式设计 */
@media (max-width: 968px) {
    .comparison-inner {
        gap: 20px;
    }

    .comparison-image .image-placeholder {
        padding: 60px 20px;
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .comparison-inner {
        flex-direction: column;
        gap: 20px;
    }

    .comparison-image {
        width: 100%;
    }

    .comparison-image .image-placeholder {
        padding: 50px 20px;
        min-height: 200px;
    }

    .comparison-image .image-placeholder i {
        font-size: 48px;
    }
}

/* 图像加载状态 */
.comparison-image .image-loading {
    display: none;
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
}

.comparison-image.loading .image-placeholder {
    display: none;
}

.comparison-image.loading .image-loading {
    display: block;
}

/* 优雅的边框渐变效果 */
.comparison-image::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 14px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.comparison-image:hover::before {
    opacity: 1;
}

/* 图像容器内的分割线（可选） */
.comparison-inner::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 60px;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1), transparent);
    transform: translateX(-50%);
}

/* 状态指示器 */
.status-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e74c3c;
    z-index: 5;
}

.status-indicator.connected {
    background: #2ecc71;
}

.status-indicator.processing {
    background: #f39c12;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* 点位表格专属样式 */
.point-table-container {
    /* 表格容器渐变边框，贴合整体风格 */
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.point-table-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    border-radius: 3px 3px 0 0;
    z-index: 3;
}

.point-data-table tbody tr {
    background: rgba(30, 41, 59, 0.2);
    transition: all 0.2s ease;
}

/* 交替行背景，减轻视觉疲劳 */
.point-data-table tbody tr:nth-child(even) {
    background: rgba(30, 41, 59, 0.4);
}

.point-data-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.15);
    transform: translateX(3px);
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.1);
}

.point-data-table tbody td {
    padding: 12px 10px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
    border-right: 1px solid rgba(71, 85, 101, 0.2);
    border-bottom: 1px solid rgba(71, 85, 101, 0.2);
}

/* 最后一列去掉右侧边框 */
.point-data-table tbody td:last-child {
    border-right: none;
}

/* 状态图标样式优化 */
.point-data-table tbody td .fas {
    font-size: 15px;
    transition: transform 0.2s ease;
}

.point-data-table tbody tr:hover .fas {
    transform: scale(1.1);
}

/* 数据计数样式 */
.data-count {
    margin-left: 20px;
    color: var(--accent-green);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.data-count::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    margin-right: 6px;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

/* 无数据提示样式 */
.point-data-table tbody tr td[colspan] {
    background: rgba(30, 41, 59, 0.15) !important;
    color: var(--text-muted);
    font-size: 14px;
}

/* 滚动条美化（仅webkit浏览器） */
.point-table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.point-table-container::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.3);
    border-radius: 4px;
}

.point-table-container::-webkit-scrollbar-thumb {
    background: rgba(71, 85, 101, 0.6);
    border-radius: 4px;
}

.point-table-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

.boolean-tag {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.tag-pending {
    background: var(--accent-blue);
    color: #fff;
}

.tag-moving {
    background: var(--accent-purple);
    color: #fff;
}

.tag-success {
    background: var(--accent-green);
    color: #fff;
}

.tag-failed {
    background: var(--accent-red);
    color: #fff;
}

@keyframes pulse {
    0% {
        background-color: rgba(59, 130, 246, 0.1);
    }

    50% {
        background-color: rgba(59, 130, 246, 0.3);
    }

    100% {
        background-color: inherit;
    }
}